package cate.game.pvp.gradepvp.msg;

import cate.common.util.GameResult;
import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBGradePvp;

@ClientMsg(title = "段位赛挑战 の 请求")
public class GradePvpChallengeReq implements MsgInput {
    @Override
    public void execute(GameBody game, ClientContext cc) {
        GameResult<Void> r = cc.getRole().getPvp().gradePvp.challenge();
        game.notice.message(cc.getRole(), r, true);
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBGradePvp.CHALLENGE_REQ;
    }
}
